package com.yz.entity;

import javax.persistence.*;
import java.util.Date;

public class Product {
    @Id
    @Column(name = "product_id")
    private Integer productId;

    @Column(name = "product_name")
    private String productName;

    @Column(name = "income_price")
    private Double incomePrice;

    @Column(name = "provider_id")
    private Integer providerId;

    private Integer quantity;

    @Column(name = "sales_price")
    private Double salesPrice;

    @Column(name = "category_id")
    private Integer categoryId;

    @Column(name = "income_time")
    private Date incomeTime;

    private Provider provider;

    private  Categorys categorys;

    public Provider getProvider() {
        return provider;
    }

    public void setProvider(Provider provider) {
        this.provider = provider;
    }

    public Categorys getCategorys() {
        return categorys;
    }

    public void setCategorys(Categorys categorys) {
        this.categorys = categorys;
    }

    /**
     * @return product_id
     */
    public Integer getProductId() {
        return productId;
    }

    /**
     * @param productId
     */
    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    /**
     * @return product_name
     */
    public String getProductName() {
        return productName;
    }

    /**
     * @param productName
     */
    public void setProductName(String productName) {
        this.productName = productName;
    }

    /**
     * @return income_price
     */
    public Double getIncomePrice() {
        return incomePrice;
    }

    /**
     * @param incomePrice
     */
    public void setIncomePrice(Double incomePrice) {
        this.incomePrice = incomePrice;
    }

    /**
     * @return provider_id
     */
    public Integer getProviderId() {
        return providerId;
    }

    /**
     * @param providerId
     */
    public void setProviderId(Integer providerId) {
        this.providerId = providerId;
    }

    /**
     * @return quantity
     */
    public Integer getQuantity() {
        return quantity;
    }

    /**
     * @param quantity
     */
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    /**
     * @return sales_price
     */
    public Double getSalesPrice() {
        return salesPrice;
    }

    /**
     * @param salesPrice
     */
    public void setSalesPrice(Double salesPrice) {
        this.salesPrice = salesPrice;
    }

    /**
     * @return category_id
     */
    public Integer getCategoryId() {
        return categoryId;
    }

    /**
     * @param categoryId
     */
    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * @return income_time
     */
    public Date getIncomeTime() {
        return incomeTime;
    }

    /**
     * @param incomeTime
     */
    public void setIncomeTime(Date incomeTime) {
        this.incomeTime = incomeTime;
    }
}